local skel = fk.CreateSkill {
  name = "emo__keai",
  tags = {Skill.Compulsory},
}

Fk:loadTranslationTable{
  ["emo__keai"] = "可爱",
  [":emo__keai"] = "锁定技，当你受到伤害时，你摸X张牌，且你本回合手牌上限+X（X为本局游戏你发动此技能的次数+1）。",

  ["$emo__keai1"] = "父亲父亲！看冲儿的！",
}

skel:addEffect(fk.DamageInflicted, {
  anim_type = "masochism",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(skel.name)
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local x = player:usedSkillTimes(skel.name, Player.HistoryGame) + 1
    room:addPlayerMark(player, MarkEnum.AddMaxCardsInTurn, x)
    player:drawCards(x, skel.name)
  end,
})

return skel
